/** * UberMenu JavaScript minified * @author Chris Mavricos, SevenSpark http://sevenspark.com * @version 2.2.2.0 */ var $u=jQuery,uberMenuWarning=!1;"undefined"!=typeof uberMenuSettings&&"on"==uberMenuSettings.noconflict?$u=jQuery.noConflict():uberMenuWarning=!0; jQuery(document).ready(function(){uberMenuSettings.removeConflicts="on"==uberMenuSettings.removeConflicts?!0:!1;uberMenuSettings.noconflict="on"==uberMenuSettings.noconflict?!0:!1;uberMenuSettings.autoAlign="on"==uberMenuSettings.autoAlign?!0:!1;uberMenuSettings.fullWidthSubs="on"==uberMenuSettings.fullWidthSubs?!0:!1;uberMenuSettings.androidClick="on"==uberMenuSettings.androidClick?!0:!1;uberMenuSettings.loadGoogleMaps="on"==uberMenuSettings.loadGoogleMaps?!0:!1;uberMenuSettings.repositionOnLoad= "on"==uberMenuSettings.repositionOnLoad?!0:!1;uberMenuSettings.hoverInterval=parseInt(uberMenuSettings.hoverInterval);uberMenuSettings.hoverTimeout=parseInt(uberMenuSettings.hoverTimeout);uberMenuSettings.speed=parseInt(uberMenuSettings.speed);uberMenuWarning&&(uberMenuSettings.noconflict&&"undefined"!=typeof console)&&console.log("[UberMenu Notice] Not running in noConflict mode. Are you using a caching plugin? If so, you need to load the UberMenu scripts in the footer.");uberMenuSettings.androidClick&& navigator.userAgent.toLowerCase().match(/(android)/)&&(uberMenuSettings.trigger="click");var b=$u("#megaMenu");if(0!=b.size()){b.uberMenu(uberMenuSettings);b.data("uberMenu");uberMenuSettings.loadGoogleMaps&&("undefined"!==typeof google&&"undefined"!==typeof google.maps&&"undefined"!==typeof google.maps.LatLng)&&$u(".spark-map-canvas").each(function(){var b=$u(this),a=b.attr("data-zoom")?parseInt(b.attr("data-zoom")):8,g=b.attr("data-lat")?new google.maps.LatLng(b.attr("data-lat"),b.attr("data-lng")): new google.maps.LatLng(40.7143528,-74.0059731),h=new google.maps.Map(this,{zoom:a,mapTypeId:google.maps.MapTypeId.ROADMAP,center:g});b.attr("data-address")&&(new google.maps.Geocoder).geocode({address:b.attr("data-address")},function(a,d){d==google.maps.GeocoderStatus.OK&&(h.setCenter(a[0].geometry.location),g=a[0].geometry.location,new google.maps.Marker({map:h,position:a[0].geometry.location,title:b.attr("data-mapTitle")}))});var j=$u(this).parents("li.ss-nav-menu-item-depth-0"),d=function(){google.maps.event.trigger(h, "resize");h.setCenter(g);j.unbind("ubermenuopen",d)};j.bind("ubermenuopen",d)});uberMenuSettings.repositionOnLoad&&jQuery(window).load(function(){uberMenu_redrawSubmenus()});var g=b.find("ul.megaMenu");$u("#megaMenuToggle").click(function(){g.slideToggle(function(){g.css("overflow","visible");g.toggleClass("megaMenuToggleOpen")})})}}); (function(b){b.uberMenu=function(b,n){var a=this;a.settings={};var p=function(c,e){a.menuEdge="vertical"==a.settings.orientation?a.$megaMenu.find("> ul.megaMenu").offset().top:a.$megaMenu.find("> ul.megaMenu").offset().left;var b=a.$megaMenu.find("> ul.megaMenu").outerWidth(),d=a.$megaMenu.find("> ul.megaMenu").outerHeight();c.each(function(){var c=$u(this),h=c.hasClass("megaHover"),c=c.find("> ul.sub-menu-1");if(e&&a.settings.autoAlign){var k=c.find("li.ss-nav-menu-item-depth-1:not(.ss-sidebar)"), g=0;c.css("left","-999em").show();k.each(function(){$u(this).width()>g&&(g=$u(this).width())});k.width(g);c.css("left","")}switch(a.settings.orientation){case "horizontal":if($u(this).hasClass("ss-nav-menu-mega-alignCenter")&&!$u(this).hasClass("ss-nav-menu-mega-fullWidth")){var f=$u(this).outerWidth(),k=c.outerWidth(),f=$u(this).offset().left+f/2-(a.menuEdge+k/2),f=0b&&(f=b-k);c.css({left:f})}break;case "vertical":if($u(this).hasClass("ss-nav-menu-mega-alignCenter")){var f=$u(this).outerHeight(), k=c.outerHeight(),f=$u(this).offset().top+f/2-(a.menuEdge+k/2),j=0d&&(f=d-k);c.css({top:j})}}h||c.hide()})},h=function(c){var e=$u(c);q(e);e.addClass("megaHover");c=e.find("ul.sub-menu-1");switch(a.settings.transition){case "slide":c.stop(!0,!0).slideDown(a.settings.speed,"swing",function(){e.trigger("ubermenuopen")});break;case "fade":c.stop(!0,!0).fadeIn(a.settings.speed,"swing",function(){e.trigger("ubermenuopen")});break;case "none":c.show(),e.trigger("ubermenuopen")}},j=function(c){var e= $u(c);if(e.has("ul.sub-menu"))switch(e.hasClass("ss-nav-menu-reg")?q(e):e.siblings().each(function(){d(this,!0)}),e.addClass("megaHover"),c=e.find("> ul.sub-menu"),a.settings.transition){case "slide":c.stop(!0,!0).slideDown(a.settings.speed,"swing",function(){e.trigger("ubermenuopen")});break;case "fade":c.stop(!0,!0).fadeIn(a.settings.speed,"swing",function(){e.trigger("ubermenuopen")});break;case "none":c.show(),e.trigger("ubermenuopen")}},d=function(c,e){var b=$u(c),d=b.find("> ul.sub-menu");if(e)d.hide(), b.removeClass("megaHover").removeClass("wpmega-expanded");else if(0 ul.megaMenu > li");null!=c&&(b=b.not(c));b.removeClass("megaHover").removeClass("wpmega-expanded").find("> ul.sub-menu").hide()};a.openMega=function(c){h(c)};a.openFlyout=function(c){j(c)};a.close=function(c,a){a||(a=!1);d(c,a)};a.redrawSubmenus=function(){var c=a.$megaMenu.find("ul.megaMenu > li.ss-nav-menu-mega.mega-with-sub");a.settings.fullWidthSubs||p(c,!0)};a.settings=$u.extend({},{speed:300,trigger:"hover",orientation:"horizontal",transition:"slide", hoverInterval:100,hoverTimeout:400,removeConflicts:!0,autoAlign:!1,fullWidthSubs:!1,onOpen:function(){}},n);a.el=b;a.$megaMenu=$u(b);a.$megaMenu.hasClass("wpmega-noconflict")&&a.$megaMenu.find("ul, ul li.menu-item, ul li.menu-item > a").removeAttr("style").unbind().off();a.$megaMenu.removeClass("megaMenu-nojs").addClass("megaMenu-withjs");$u("#megaMenu li.ss-nav-menu-reg li:has(> ul)").addClass("megaReg-with-sub");var l=a.$megaMenu.find("ul.megaMenu > li.ss-nav-menu-mega.mega-with-sub");a.settings.fullWidthSubs? l.find("> ul.sub-menu-1").hide():(p(l,!0),$u(window).resize(function(){p(l,!1)}));switch(a.settings.trigger){case "click":l.find("> a, > span.um-anchoremulator").click(function(c){var a=$u(this).parent("li");c.preventDefault();a.hasClass("wpmega-expanded")?(a.removeClass("wpmega-expanded"),d(a.get(0),!1)):(a.addClass("wpmega-expanded"),h(a.get(0)))});$u(document).click(function(){q()});a.$megaMenu.click(function(a){a.stopPropagation()});break;case "hoverIntent":l.hoverIntent({over:function(){h(this)}, out:function(a){"object"===typeof a&&$u(a.fromElement).is("#megaMenu form, #megaMenu input, #megaMenu select, #megaMenu textarea, #megaMenu label")||d(this,!1)},timeout:a.settings.hoverTimeout,interval:a.settings.hoverInterval,sensitivity:2});break;case "hover":l.hover(function(){h(this)},function(a){"object"===typeof a&&$u(a.fromElement).is("#megaMenu form, #megaMenu input, #megaMenu select, #megaMenu textarea, #megaMenu label")||d(this)})}var m=a.$megaMenu.find("ul.megaMenu > li.ss-nav-menu-reg.mega-with-sub, li.ss-nav-menu-reg li.megaReg-with-sub"); m.find("ul.sub-menu").hide();switch(a.settings.trigger){case "click":m.find("> a, > span.um-anchoremulator").click(function(a){var b=$u(this).parent("li");a.preventDefault();a.stopPropagation();b.hasClass("wpmega-expanded")?(b.removeClass("wpmega-expanded"),d(b.get(0))):(b.addClass("wpmega-expanded"),j(b.get(0)))});break;case "hoverIntent":m.hoverIntent({over:function(){j(this)},out:function(a){"object"===typeof a&&$u(a.fromElement).is("#megaMenu form, #megaMenu input, #megaMenu select, #megaMenu textarea, #megaMenu label")|| d(this,!1)},timeout:a.settings.hoverTimeout,interval:a.settings.hoverInterval,sensitivity:2});break;case "hover":m.hover(function(){j(this)},function(){d(this)})}m=navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/);if(jQuery.uber_mobile||m)$u('×').appendTo("#megaMenu li.mega-with-sub > a, #megaMenu li.mega-with-sub > span.um-anchoremulator").click(function(a){a.preventDefault();"open"==$u(this).attr("data-uber-status")?(d($u(this).parents("li.mega-with-sub")[0], !0),$u(this).html("↓").attr("data-uber-status","closed")):(h($u(this).parents("li.mega-with-sub")[0]),$u(this).html("×").attr("data-uber-status","open"));return!1}),a.$megaMenu.find("ul.megaMenu > li.mega-with-sub").hover(function(a){a.preventDefault();$u(this).find(".uber-close").html("×").attr("data-uber-status","open").show()},function(){$u(this).find(".uber-close").hide()})};b.fn.uberMenu=function(g){return this.each(function(){if(void 0==$u(this).data("uberMenu")){var n=new b.uberMenu(this, g);$u(this).data("uberMenu",n)}})}})(jQuery);function uberMenu_openMega(b){$u("#megaMenu").data("uberMenu").openMega(b)}function uberMenu_openFlyout(b){$u("#megaMenu").data("uberMenu").openFlyout(b)}function uberMenu_close(b){$u("#megaMenu").data("uberMenu").close(b)}function uberMenu_redrawSubmenus(){$u("#megaMenu").data("uberMenu").redrawSubmenus()} (function(b){jQuery.uber_mobile=/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(b.substr(0, 4))})(navigator.userAgent||navigator.vendor||window.opera);